package com.legendshop.openportal.sdk.model.response.prod;

import com.legendshop.openportal.sdk.model.BaseResponse;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @Description:
 * @Author lwj
 * @data 2024/7/25
 **/

@Data
@ApiModel(value = "商品库存返回结果")
public class ProdStockResponse extends BaseResponse {

    private static final long serialVersionUID = -2082874774378721462L;

    @ApiModelProperty(value = "商品Id")
    private Long prodId;

    @ApiModelProperty(value = "skuId")
    private Long skuId;

    @ApiModelProperty(value = "库存状态编号")
    private BigDecimal stockStateId;

    @ApiModelProperty(value = "库存状态描述")
    private String stockStateDesc;

    @ApiModelProperty(value = "剩余数量， 大于0表示有货，大于50件就显示50, -1表示无货")
    private Integer remainNum;

    /**
     * 入参时传入的区域码area。
     * 因京东目前是3、4级地址均支持，存在areaId在传入的3级地址后填充4级地址“_0“后返回的情况。
     */
    @ApiModelProperty(value = "入参时传入的区域码area")
    private String areaId;
}
